package com.example.huichaoliu;

import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.huichaoliu.adapters.ActivityShareAdapter;
import com.huichaoliu.app.R;
import com.rederxu.farmer.BaseActivity;

public class CallHelpActivity extends BaseActivity implements OnClickListener {
	
	private TextView tv_type_price = null;
	private TextView tv_type_content = null;
	private TextView tv_type_style = null;
	private View layout_items = null;
	private ImageView ic_designer_1 = null;
	private ImageView ic_designer_2 = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_call_help);
		super.onCreate(savedInstanceState);
	}
	
	@Override
	public void onClick(View v) {
		layout_items.setVisibility(View.GONE);
		switch(v.getId()){
		case R.id.left_button:
			finish();
			break;
		case R.id.tv_type_price:
			layout_items.setVisibility(View.VISIBLE);
			break;
		case R.id.tv_type_content:
			layout_items.setVisibility(View.VISIBLE);
			break;
		case R.id.tv_type_style:
			layout_items.setVisibility(View.VISIBLE);
			break;
		case R.id.ic_designer_1:
			startActivity(DesignerListActivity.class);
			break;
		case R.id.ic_designer_2:
			startActivity(DesignerListActivity.class);
			break;
		}
	}

	@Override
	public void init() {
		((TextView) findViewById(R.id.title_text)).setText("求救贴");
		ic_designer_1 = (ImageView) findViewById(R.id.ic_designer_1);
		ic_designer_2 = (ImageView) findViewById(R.id.ic_designer_2);
		tv_type_price = (TextView) findViewById(R.id.tv_type_price);
		tv_type_content = (TextView) findViewById(R.id.tv_type_content);
		tv_type_style = (TextView) findViewById(R.id.tv_type_style);
		layout_items = findViewById(R.id.layout_items);
		findViewById(R.id.left_button).setOnClickListener(this);
		tv_type_price.setOnClickListener(this);
		tv_type_content.setOnClickListener(this);
		tv_type_style.setOnClickListener(this);
		layout_items.setOnClickListener(this);
		ic_designer_1.setOnClickListener(this);
		ic_designer_2.setOnClickListener(this);
	}

	@Override
	public void initData() {
	}

	@Override
	public void onNetworkChanged(boolean isMobNetConnected,
			boolean isWifiConnected) {
		// TODO Auto-generated method stub

	}

}
